export default class ColorManager {
    static manager: ColorManager;

    // 0:[边框色]
    // 1:[文字色]
    // 2:[背景色]
    color: Array<colorData> = [
        {
            border: '#808080',
            text: '#808080',
            background: '#808080AA',
            boxShadow: '#808080',
        }
    ];

    public constructor() {
        ColorManager.manager = this;
    }

    public static get(index: number) {
        return ColorManager.manager.color[index];
    }

    public static set(index: number, data: colorData) {
        ColorManager.manager.color[index] = data;
    }


}


interface colorData {
    border: String,
    text: String,
    background: String,
    boxShadow: String,
}